package com.code.day13;

public class Day13StringOtherMethod {
    public static void main(String[] args) {
        String s = "abcdefg";
        System.out.println(s.contains("abcd"));

        System.out.println(s.startsWith("ab"));
        System.out.println(s.endsWith("fg"));

        String s1 = "ABCDEFG";
        System.out.println(s1.toLowerCase());
        System.out.println(s.toUpperCase());

        String s2 = "   a  b  c   ";
        System.out.println(s2.trim());
        System.out.println(s2.replace(" ", ""));
    }
}
